{extend name="public/base" /}
{block name="body"}
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
			<div class="widget-head">
				<div class="widget-title">{$title}</div>
			</div>
			<form id="my-form" class="layui-form" method="post">
				<div class="widget-body layui-col-lg12">					
					<div class="layui-form-item">
						<label class="layui-form-label form-require">品牌名称</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="name" value="{$info.name}" placeholder="请输入品牌名称" required>
						</div>
					</div>					
					<div class="layui-form-item">
						<label class="layui-form-label">品牌链接</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="url" value="{$info.url}" placeholder="请输入品牌链接">
						</div>
					</div>					
					<div class="layui-form-item">
						<label class="layui-form-label">排序</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="sort" value="{$info.sort|default='0'}" placeholder="请输入排序">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-block">
							<input type="radio" name="status" value="1" title="是" {eq name="info['status']" value="1"}checked{/eq}>
                    		<input type="radio" name="status" value="0" title="否" {eq name="info['status']" value="0"}checked{/eq}>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="hidden" name="id" value="{$info.id}">
							<button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    		<button class="layui-btn layui-btn-primary" onclick="javascript:history.back(-1);return false;">返回</button>
						</div>						
					</div>
				</div>
			</form>
		</div>
    </div>
</div>
{/block}